package com.py.credit.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.ReportContentDao;
import com.py.credit.service.ReportContentService;

@Service
public class ReportContentServiceImpl implements ReportContentService {

	@Autowired
	private ReportContentDao reportContentDao;

	@Override
	public List<Map> searchFinance(String pgId) {
		// TODO Auto-generated method stub
		return reportContentDao.searchFinance(pgId);
	}

	@Override
	public List<Map> searchprofits(String pgId) {
		// TODO Auto-generated method stub
		return reportContentDao.searchprofits(pgId);
	}

	@Override
	public List<Map> searchCashflow(String pgId) {
		// TODO Auto-generated method stub
		return reportContentDao.searchCashflow(pgId);
	}

	@Override
	public List<Map> searchAssets(String pgId) {
		// TODO Auto-generated method stub
		return reportContentDao.searchAssets(pgId);
	}

	@Override
	public List<Map> searchcurrentliabilities(String pgId) {
		// TODO Auto-generated method stub
		return reportContentDao.searchcurrentliabilities(pgId);
	}

	@Override
	public Map getEvalInfo(String bgbh) {
		// TODO Auto-generated method stub
		return reportContentDao.getEvalInfo(bgbh).get(0);
	}

	@Override
	public String getTybm(String userId) {
		// TODO Auto-generated method stub
		return reportContentDao.getTybm(userId);
	}

}
